/**
 * Created by mahai on 2018/12/26.
 * 标签api
 */


const mongoose = require('mongoose');
const Schema = mongoose.Schema;

//创建 Schema
const TagsSchema = new Schema({
    tag:{
        type:String,
        required:true
    },
    userId:{
        type:String,
        required:true
    },
    createTime:{
        type:Date,
        default:Date.now()
    },
    updateTime:{
        type:Date,
        default:Date.now()
    }
});

module.exports = Tags = mongoose.model('tags',TagsSchema);